package com.cts.tmall.app.controller;

import com.cts.tmall.biz.service.EvaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;
import java.util.Map;

@RestController
@RequestMapping("/api/eva")
public class EvaController {

    @Autowired
    private EvaService evaService;

    @GetMapping
    public Map<String, Object> queryEva(@RequestParam Map<String, String> params) throws ParseException {
        return evaService.queryEva(params);
    }
}
